<!-- Category Mange Widget -->
<?php
$params = array(
    'calendar' => array(
        'year' => date('Y'),
        'month' => date('m'),
        'month_link' => null,
        'day_link' => '/tests/sme/posts/calendar/'
    ),
    'overview'=>array('overview'=>$overview),
    'weather'=>array('weather'=>$weather)
);
?>
<?php if(isset($user) && $user['group'] == 'student'): ?>
<div class="widgets">
    <div class="widget" id="widget_campus">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('Campus Navigation'); ?></h3>
        <div class="content">
            <?php e($this->element('widget_campus')); ?>
        </div>
    </div>
    <div class="widget" id="widget_calendar">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php printf(__('Calendar(%s)', true), date('Y-m')); ?></h3>
        <div class="content">
            <?php e($this->element('widget_calendar', $params['calendar'])); ?>
        </div>
    </div>
</div>
<div class="widgets">
    <div class="widget" id="widget_seacher">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('Search Something'); ?></h3>
        <div class="content">
            <div class="seacher">
                <?php unset($postTerms, $term, $i); ?>
                <?php e($this->element('form_app_search')); ?>
            </div>
        </div>
    </div>
    <div class="widget" id="widget_weather">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('Yahoo Weather'); ?></h3>
        <div class="content">
            <?php e($this->element('widget_weather', $params['weather'])); ?>
        </div>
    </div>
</div>
<?php else: ?>
<div class="widgets">
    <div class="widget" id="widget_seacher">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('Search Something'); ?></h3>
        <div class="content">
            <div class="seacher">
                <?php unset($postTerms, $term, $i); ?>
                <?php e($this->element('form_app_search')); ?>
            </div>
        </div>
    </div>
    <div class="widget" id="widget_campus">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('Campus Navigation'); ?></h3>
        <div class="content">
            <?php e($this->element('widget_campus')); ?>
        </div>
    </div>
    <div class="widget" id="widget_calendar">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php printf(__('Calendar(%s)', true), date('Y-m')); ?></h3>
        <div class="content">
            <?php e($this->element('widget_calendar', $params['calendar'])); ?>
        </div>
    </div>
</div>
<div class="widgets">
    <div class="widget" id="widget_overview">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('Database Overview'); ?></h3>
        <div class="content">
            <?php e($this->element('widget_overview', $params['overview'])); ?>
        </div>
    </div>
    <div class="widget" id="widget_wheather">
        <div class="toggle">&nbsp;</div>
        <h3 class="handle"><?php __('Yahoo Weather'); ?></h3>
        <div class="content">
            <?php e($this->element('widget_weather', $params['weather'])); ?>
        </div>
    </div>
</div>
<?php endif; ?>
<br class="clear"/>